﻿function action(mode, type, selection) {
    cm.removeAll(4001022);
    cm.removeAll(4001023);
    cm.addTrait("will", 35);
    cm.addTrait("charisma", 10);
    cm.getPlayer().endPartyQuest(1202);//might be a bad implentation.. incase they dc or something
    if (cm.getEventCount("LudiPQ") < 10) {
        cm.setEventCount("LudiPQ");
		
	cm.worldSpouseMessage(0x15, "『时间维护』 : " + cm.getChar().getName() + " 和他的小伙伴们成功修补了玩具城时间裂缝的痕迹！!。");
	cm.gainPlayerEnergy(1800);
	cm.gainPlayerPoints(1800);
	cm.gainItem(2614046, 3);
	cm.gainItem(5062000, 4);	
	cm.gainItem(5062000, 4);
	cm.gainItem(2431347, 3);
	cm.gainItem(2431114, 3);
	cm.gainItem(2436249, 3);
	cm.gainNX(2, 1800);
    }
    cm.warp(922010000);
	cm.sendOk("您获得的组队任务奖品：\r\n#v2614046#x3 #v5062000#x4 #v5062002#x4 #v2431347#x3 #v2431114#x3 #v2436249#x3 \r\n抵用券x1800 PPMS活跃x1800 PPMS微积分x1800");		
    cm.dispose();
}
